package com.itheima.stock.service.impl;

import com.itheima.stock.mapper.StockBusinessMapper;
import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.service.StockService;
import com.itheima.stock.vo.resp.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 *    定义股票服务接口实现类
 */
@Service
public class StockServiceImpl implements StockService {

    @Autowired
    private StockBusinessMapper stockBusinessMapper;
    @Override
    public R<List<StockBusiness>> findAllBusiness() {

        List<StockBusiness> list = stockBusinessMapper.findAll();
        return R.ok(list);
    }
}
